.class public abstract Lcom/estrongs/android/ui/topclassify/c;
.super Ljava/lang/Object;
.source "ClassifyBase.java"


# instance fields
.field protected a:Landroid/content/Context;

.field protected b:Ljava/lang/String;

.field protected c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/topclassify/e;",
            ">;"
        }
    .end annotation
.end field

.field private d:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/ui/topclassify/c;->c:Ljava/util/List;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/ui/topclassify/c;->d:Z

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/ui/topclassify/c;->a:Landroid/content/Context;

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/topclassify/c;->b:Ljava/lang/String;

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->f()V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->e()V

    return-void
.end method


# virtual methods
.method protected a(I)Ljava/lang/String;
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/topclassify/c;->a:Landroid/content/Context;

    if-eqz v0, :cond_0

    .line 7
    invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    const-string p1, ""

    return-object p1
.end method

.method public abstract a()Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end method

.method public a(Lcom/estrongs/android/ui/topclassify/e;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/topclassify/c;->c:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method protected a(Ljava/lang/String;III)V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/topclassify/c;->c:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 4
    new-instance v0, Lcom/estrongs/android/ui/topclassify/e;

    invoke-direct {v0, p1, p2, p3, p4}, Lcom/estrongs/android/ui/topclassify/e;-><init>(Ljava/lang/String;III)V

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ui/topclassify/c;->c:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 8
    iput-boolean p1, p0, Lcom/estrongs/android/ui/topclassify/c;->d:Z

    return-void
.end method

.method public abstract b()I
.end method

.method public c()Ljava/lang/String;
    .locals 1

    const-string v0, ""

    return-object v0
.end method

.method public d()Ljava/util/List;
    .locals 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->a()Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 2
    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_7

    .line 3
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    add-int/lit8 v3, v2, -0x1

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->b()I

    move-result v4

    div-int/2addr v3, v4

    const/4 v4, 0x1

    add-int/2addr v3, v4

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->b()I

    move-result v5

    rem-int v5, v2, v5

    const/4 v6, 0x0

    if-eqz v5, :cond_1

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->b()I

    move-result v7

    sub-int/2addr v7, v5

    goto :goto_0

    :cond_1
    const/4 v7, 0x0

    :goto_0
    const/4 v5, 0x0

    :goto_1
    if-ge v5, v3, :cond_7

    .line 7
    new-instance v8, Landroid/widget/LinearLayout;

    iget-object v9, p0, Lcom/estrongs/android/ui/topclassify/c;->a:Landroid/content/Context;

    invoke-direct {v8, v9}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 8
    instance-of v9, p0, Lcom/estrongs/android/ui/topclassify/i;

    if-eqz v9, :cond_2

    .line 9
    iget-object v9, p0, Lcom/estrongs/android/ui/topclassify/c;->a:Landroid/content/Context;

    invoke-virtual {v9}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v9

    const v10, 0x7f0700b7

    invoke-virtual {v9, v10}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v9

    invoke-virtual {v8, v6, v9, v6, v6}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 10
    :cond_2
    invoke-virtual {v8, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 11
    new-instance v9, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v10, -0x1

    const/4 v11, -0x2

    invoke-direct {v9, v10, v11}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 12
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->b()I

    move-result v10

    const/high16 v12, 0x3f800000    # 1.0f

    if-le v10, v4, :cond_3

    .line 13
    new-instance v9, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v9, v6, v11, v12}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    .line 14
    :cond_3
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->b()I

    move-result v10

    mul-int v10, v10, v5

    :goto_2
    if-ge v10, v2, :cond_5

    add-int/lit8 v11, v5, 0x1

    .line 15
    invoke-virtual {p0}, Lcom/estrongs/android/ui/topclassify/c;->b()I

    move-result v13

    mul-int v11, v11, v13

    if-ge v10, v11, :cond_4

    .line 16
    invoke-interface {v0, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Landroid/view/View;

    .line 17
    invoke-virtual {v8, v11, v9}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_4
    add-int/lit8 v10, v10, 0x1

    goto :goto_2

    :cond_5
    add-int/lit8 v9, v3, -0x1

    if-ne v5, v9, :cond_6

    if-eqz v7, :cond_6

    const/4 v9, 0x0

    :goto_3
    if-ge v9, v7, :cond_6

    .line 18
    new-instance v10, Landroid/view/View;

    iget-object v11, p0, Lcom/estrongs/android/ui/topclassify/c;->a:Landroid/content/Context;

    invoke-direct {v10, v11}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 19
    new-instance v11, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v11, v6, v4, v12}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    .line 20
    invoke-virtual {v8, v10, v11}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    add-int/lit8 v9, v9, 0x1

    goto :goto_3

    .line 21
    :cond_6
    invoke-interface {v1, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    :cond_7
    return-object v1
.end method

.method public abstract e()V
.end method

.method protected f()V
    .locals 0

    return-void
.end method

.method public g()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/topclassify/c;->d:Z

    return v0
.end method
